package com.manjiwang.middleground.feign;

import com.alibaba.fastjson.JSONObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 订单服务feign接口
 *
 * @Author Yang Hai Feng
 * @Date 2021/8/10 22:26
 */
@FeignClient("order-service")
public interface OrderFeignService {

    /**
     * 模拟订单增加购买商品数量，每次+1
     *
     * @param id
     * @return
     */
    @GetMapping("/order/updateOrder")
    JSONObject updateOrder(@RequestParam("id") String id);
}
